package prjClasses;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class StringToDate {
	public static Date convert(String sDate) {
		Date result=new Date();
        DateFormat df = new SimpleDateFormat("dd.MM.yyyy");

        try {
            result = df.parse(sDate);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        return result;
    }
}
